package com.supermap.application.common;

import java.util.Set;

/**
 * @ClassName UserInfo
 * @Description 用户信息传递类
 * @Author HEKE
 * @Date 2019/2/27 12:14
 */
public class UserInfo {

    /**
     * 用户电话
     */
    private String phone;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 唯一标识ID
     */
    private String id;

    /**
     * 用户状态 启用=1 禁用=0
     */
    private String state;

    /**
     * 操作信息 新增=add、修改=update、删除=delete
     */
    private String operation;

    /**
     * 关联部门
     */
    private Set<UserDepartmentFromKC> orgs;

    public UserInfo() {
    }

    public UserInfo(String phone, String name, String id, String state, String operation, Set<UserDepartmentFromKC> orgs) {
        this.phone = phone;
        this.name = name;
        this.id = id;
        this.state = state;
        this.operation = operation;
        this.orgs = orgs;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public Set<UserDepartmentFromKC> getOrgs() {
        return orgs;
    }

    public void setOrgs(Set<UserDepartmentFromKC> orgs) {
        this.orgs = orgs;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", state='" + state + '\'' +
                ", operation='" + operation + '\'' +
                ", orgs=" + orgs +
                '}';
    }
}
